const routes = [
    {
        path: '/',
        redirect: "/login"
    },
    {
        path: '/home',
        component: () => import(/* webpackChunkName: "about" */ '../views/Home.vue'),
        children: [
            {
                path: '/home',
                redirect: "/home/homes"
            },
            {
                path: '/home/homes',
                title: "房源管理",
                icon: "el-icon-menu",
                use: ['管理员', '员工'],
                component: () => import(/* webpackChunkName: "about" */ '../views/Homes'),
            },
            {
                path: '/home/vadio',
                title: "直播管理",
                icon: "el-icon-s-claim",
                use: ['管理员'],
                component: () => import(/* webpackChunkName: "about" */ '../views/Vadio'),
            },
            {
                path: '/home/teambuy',
                title: "团购管理",
                icon: "el-icon-s-cooperation",
                use: ['管理员'],
                component: () => import(/* webpackChunkName: "about" */ '../views/TeamBuy'),
            },
            {
                path: '/home/audit',
                title: "审核管理",
                icon: "el-icon-paperclip",
                use: ['管理员'],
                component: () => import(/* webpackChunkName: "about" */ '../views/Audit'),
            },
            {
                path: '/home/order',
                title: "订单管理",
                icon: "el-icon-s-marketing",
                use: ['管理员'],
                component: () => import(/* webpackChunkName: "about" */ '../views/Order'),
            },{
                path: '/home/information',
                title: "资讯管理",
                icon: "el-icon-s-data",
                use: ['管理员'],
                component: () => import(/* webpackChunkName: "about" */ '../views/Information'),
            },
            {
                path: '/home/broker',
                title: "经纪人管理",
                icon: "el-icon-s-custom",
                use: ['管理员'],
                component: () => import(/* webpackChunkName: "about" */ '../views/Broker'),
            }
        ]
    },
    {
        path: '/login',
        component: () => import('../views/Login')
    },
    {
        path: '/register',
        component: () => import('../views/Register')
    }
]

export default routes